import { config } from '../../config/index';
import { request } from '../../utils/request';

function mockUserLogin() {
  return ;
}

export function userLogin(query_data) {
  if (config.useMock) {
    return mockUserLogin();
  }

  return request('login', query_data, 'POST').then((res) => {
    return res;
  });
}

export function updateUserInfo(query_data) {
  return request('user/info/update', query_data, 'POST').then((res) => {
    return res;
  })
}

